package main

import "fmt"

func main() {
	dessertMenu := [4]string{"Muffin", "Brownine", "Croissant", "Cookie"}
	fmt.Println("Dessert Menu:", dessertMenu)
	slice := dessertMenu[1:3] // 索引1~2,不包含索引3
	fmt.Println("Slice of the Dessert Menu [1:3]:", slice)
	slice = dessertMenu[:] // 所有元素
	fmt.Println("Slice of the Dessert Menu [:]:", slice)
	slice = dessertMenu[2:] // 索引2~最后一个元素
	fmt.Println("Slice of the Dessert Menu [2:]:", slice)
	slice = dessertMenu[:3] // 索引0~2,不包含索引3
	fmt.Println("Slice of the Dessert Menu [:3]:", slice)
}
